﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Forecast.Domain.Implementation
{
    public delegate void OfferCreatedEventHandler(object sender, OfferCreatedEventArgs e);
        
    public static class Blackboard
    {
        #region Variables

        public static event OfferCreatedEventHandler OfferCreated;

        #endregion
        #region Interface

        public static void OfferCreatedNow(object sender, IPredict prediction)
        {
            if (OfferCreated != null)
                OfferCreated(sender, new OfferCreatedEventArgs(prediction));
        }

        #endregion
    }
}
